package com.goushu.service.impl;

import com.goushu.mapper.NewsMapper;
import com.goushu.service.NewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class NewsServiceImpl implements NewsService {

    @Autowired
    private NewsMapper newsMapper;

    @Override
    public List<Map<String, String>> getCarousel() {
        return newsMapper.getCarousel();
    }

    @Override
    public List<Map<String, String>> getExpress() {
        return newsMapper.getExpress();
    }
}
